/**
 * Project: apollo-base-tools
 * 
 * File Created at 2017年8月7日
 * 
 * Copyright 2015-2016 dx.com Croporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * DongXue software Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with dx.com.
 */
package org.apollo.sys;

import org.apache.log4j.Level;
import org.apache.log4j.Logger;
import org.apache.log4j.PropertyConfigurator;

/** 
* @ClassName: SysLog 
* @Description: 系统日志
* @author wuzhenfang(wzfbj2008@163.com)
* @date 2017年8月7日 下午3:54:03 
* @version V1.0 
*/
public class SysLog {

	  private  static Logger logger ;
	  
	  public static Logger getLogger(){
		  return getLogger(SysLog.class);
	  }
	  public static Logger getLogger(Class<? extends Object> clazz){
//		  if(logger == null){
			  logger =  Logger.getLogger(clazz);
//		  }
		  PropertyConfigurator.configure(ClassLoader.getSystemResource(Constants.LOG4J_FILE));
		  logger.setLevel(Level.INFO);
		  return logger;
	  }
}
